Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Rewrite and re-enable some hardware intrinsic tests #20552

Merged
merged 1 commit into from
Oct 23, 2018

Conversation

fiigii
Copy link

@fiigii fiigii commented Oct 23, 2018

Rewrite and re-enable hardware intrinsic tests that were disabled in #20310

@fiigii
Copy link
Author

fiigii commented Oct 23, 2018

@CarolEidt @tannergooding PTAL

@fiigii
Copy link
Author

fiigii commented Oct 23, 2018

@dotnet-bot test Windows_NT x64 Checked jitsse2only
@dotnet-bot test Windows_NT x64 Checked jitincompletehwintrinsic
@dotnet-bot test Windows_NT x64 Checked jitx86hwintrinsicnoavx
@dotnet-bot test Windows_NT x64 Checked jitx86hwintrinsicnoavx2
@dotnet-bot test Windows_NT x64 Checked jitx86hwintrinsicnosimd
@dotnet-bot test Windows_NT x64 Checked jitnox86hwintrinsic

@dotnet-bot test Windows_NT x86 Checked jitsse2only
@dotnet-bot test Windows_NT x86 Checked jitincompletehwintrinsic
@dotnet-bot test Windows_NT x86 Checked jitx86hwintrinsicnoavx
@dotnet-bot test Windows_NT x86 Checked jitx86hwintrinsicnoavx2
@dotnet-bot test Windows_NT x86 Checked jitx86hwintrinsicnosimd
@dotnet-bot test Windows_NT x86 Checked jitnox86hwintrinsic

@dotnet-bot test Ubuntu x64 Checked jitsse2only
@dotnet-bot test Ubuntu x64 Checked jitincompletehwintrinsic
@dotnet-bot test Ubuntu x64 Checked jitx86hwintrinsicnoavx
@dotnet-bot test Ubuntu x64 Checked jitx86hwintrinsicnoavx2
@dotnet-bot test Ubuntu x64 Checked jitx86hwintrinsicnosimd
@dotnet-bot test Ubuntu x64 Checked jitnox86hwintrinsic

@fiigii
Copy link
Author

fiigii commented Oct 23, 2018

@dotnet-bot test Ubuntu x64 Checked Innerloop Build and Test

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How long does this run? Should it possibly be priority 1, i.e.:

    <CLRTestPriority>1</CLRTestPriority>

Also, I took a brief look at the test, and I think it should be wrapped in a try/catch so that we don't consider it passing if it throws an exception.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default, it just runs < 1s (usually we modify it to run longer for perf analysis).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, sounds good - probably good to have it as a pri0 test then.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't consider it passing if it throws an exception.

This program is wrapped by if(Avx2.IsSupported), so it never throws PNSE. For other exception code, let me remove the old code copied from the Raytracer benchmark (e.g., ObjectPool.cs) in the next PR.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fiigii do you plan to modify it to wrap the main code in a try/catch?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you file an issue so that this doesn't get forgotten?
I'm not concerned about catching PNSE - the point is to catch any unexpected exception and report failure.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CarolEidt Thank you for the suggestions, logged at https://github.com/dotnet/coreclr/issues/20557. I will submit a PR by the end of this week.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link

@CarolEidt CarolEidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@CarolEidt CarolEidt merged commit 7e7570d into dotnet:master Oct 23, 2018
@fiigii fiigii deleted the retest branch October 23, 2018 22:52
@danmoseley
Copy link
Member

Just curious, with the new release-mode flags, will legs like @dotnet-bot test Windows_NT x64 Checked jitsse2only have release counterparts? Will it be possible to run corefx tests with such flags?

@fiigii
Copy link
Author

fiigii commented Oct 23, 2018

@danmosemsft "jitsse2only" (COMPlus_Enable3_4=0) is originally a release mode knob. We do not have CI jobs yet for the new knobs (except jitx86hwintrinsicnoavx2).

picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Rewrite and re-enable some hardware intrinsic tests

Commit migrated from dotnet/coreclr@7e7570d
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants